<pre class="docs-method-signature"><code>link.hasLoop([opt])</code></pre>
<p>Return <code>true</code> if this link is a <q>loop link</q>. In a <q>loop link</q> <code>source</code> and <code>target</code> are equal.</p>

<p>If <code>opt.deep</code> is <code>true</code>, the notion of a <q>loop link</q> is extended to a deep hierarchy. For example, if the link connects a parent element with one of its embedded elements, the link is considered a <q>loop link</q>, as well.</p>
